gnome = import('gnome')

gtkmm_dep = dependency('gtkmm-4.0', version: '>= 4.16.0')

Mp_resources = gnome.compile_resources(
    'MpResources',
    'resources/mp.gresource.xml',
    source_dir: 'resources',
    c_name: 'MpResources',
)

Mp_deps = [
    gtkmm_dep
]

src = [
    'main.cpp',
    'Application.cpp',
    'ApplicationWindow.cpp',
    'Network.cpp',
    'ConnectWindow.cpp',
]

ManagementPlantform = executable(
    'ManagementPlantform',
    Mp_resources,
    sources: src,
    dependencies: Mp_deps,
    install : true
)

test(
    '测试 Management Plantform', ManagementPlantform
)
